define(["jQuery", "kendo"], function ($, kendo) {
    return {
		show : function(){
			$( "#sticky-dragable-menu" ).show();
			$( "#sticky-dragable-menu" ).css('left','0px');
			$( "#sticky-dragable-menu" ).css('top','0px');
		},
		
		hide : function(){
			$( "#sticky-dragable-menu" ).hide();			
		},
		
        init: function (e) {
			$("#sticky-dragable-menu").draggable();
			$("#sticky-dragable-menu").hide();
			
			
			
			
			$(".creation-sticky").click(function() {
				$("img").removeClass('active');
				var idStamp = $(this).parent().find(">:first-child").attr("id");
				var imgStamp = $("#"+idStamp).find(">:first-child").attr("id");
				var type = $(this).attr('sticky-type');
				$("#img"+type).addClass('active');
				App.prepareStickyTextCreation(true,type);
			});
			
			
			$(".cancel-sticky-button").live('click',function() {
				App.openedTool.removeClass('active');
				App.openedTool =false;
				$( "#sticky-dragable-menu" ).hide();
				App.setEnableStampCreationMode(false,"");
			});
		
		}
	}
});